package com.kob.backend.service.impl.product;

import com.kob.backend.mapper.ProductMapper;
import com.kob.backend.pojo.product;
import com.kob.backend.service.product.ProductSearchByPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProductSearchBypriceImpl implements ProductSearchByPriceService {

    @Autowired
    private ProductMapper productMapper;
    @Override
    public List<product> searchByprice(Double min_price, Double max_price) {
        return productMapper.searchByprice(min_price,max_price);
    }
}
